//------------------------------------------------------------------------------
// X2D Game Engine
// Copyright (C) 2006-2007 Janusz Kowalski
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//------------------------------------------------------------------------------



#include <cassert>
#include <cstdio>
#include <cstring>
#include "SDL_mixer.h"
#include "x2d_main.h"

#ifdef OS_WINDOWS
#  include <windows.h>
#endif

#include "x2d_ext.h"
#include "global.h"
#include "imgSDL.h"
#include "pmsg.h"

namespace x2d {


  
void logHardwareInfo() {
  // Zapisz informacje o trybie wideo w logu
  pmsgInfoF("%s", "# Video mode\n");
  
  const SDL_VideoInfo *info = SDL_GetVideoInfo();
  
  pmsgInfoF(" hw_available: %d (Is it possible to create hardware surfaces?)\n", info->hw_available);
  pmsgInfoF(" wm_available: %d (Is there a window manager available?)\n", info->wm_available);
  pmsgInfoF(" blit_hw: %d (Are hardware to hardware blits accelerated?)\n", info->blit_hw);
  pmsgInfoF(" blit_hw_CC: %d (Are hardware to hardware colorkey blits accelerated?)\n", info->blit_hw_CC);
  pmsgInfoF(" blit_hw_A: %d (Are hardware to hardware alpha blits accelerated?)\n", info->blit_hw_A);
  pmsgInfoF(" blit_sw: %d (Are software to hardware blits accelerated?)\n", info->blit_sw);
  pmsgInfoF(" blit_sw_CC: %d (Are software to hardware colorkey blits accelerated?)\n", info->blit_sw_CC);
  pmsgInfoF(" blit_sw_A: %d (Are software to hardware alpha blits accelerated?)\n", info->blit_sw_A);
  pmsgInfoF(" blit_fill: %d (Are color fills accelerated?)\n", info->blit_fill);
  pmsgInfoF(" video_mem: %d (Kbytes)\n", info->video_mem);
}
  
} /* namespace x2d */
